home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmiSoft / Dev / Gui / Cit.lha / CIT / citra / CITDouble.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-13  |  678 b   |  41 lines

  1. //
  2. //                    CITDouble include
  3. //
  4. //                          StormC
  5. //
  6. //                     version 2003.01.28
  7. //
  8.  
  9. #ifndef CITDOUBLE_H
  10. #define CITDOUBLE_H TRUE
  11.  
  12. #include "CITString.h"
  13.  
  14. class CITDouble:public CITString
  15. {
  16.   public:
  17.     CITDouble();
  18.     ~CITDouble();
  19.  
  20.     void   Format(char* f) { formatStr = f; }
  21.     void   Number(double num);
  22.     double Number();
  23.     
  24.   protected:
  25.     virtual Object* NewObjectA(TagItem* tags);
  26.     virtual ULONG hookEntry(struct Hook* inputHook,APTR object,APTR msg);
  27.  
  28.     char* formatStr;
  29.     char  outputStr[32];
  30.     
  31.   private:
  32.     TagItem* floatTag;
  33. };
  34.  
  35. enum
  36. {
  37.   DOUBLECLASS_FLAGBITUSED = STRINGCLASS_FLAGBITUSED
  38. };
  39.  
  40. #endif
  41.